package com.ruoyi.business.controller;

import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 我的模块接口测试
 *
 * @author tangdw
 * @since 1.0,  2021-1-8
 */
@RestController
@RequestMapping("/myTest")
public class MyTestController extends BaseController {


    @PostMapping("/testA")
    public AjaxResult testA() {
        System.out.println("测试接口返回1");
        return AjaxResult.success("测试接口返回 testA: hello world");
    }

    @GetMapping("/testB")
    public AjaxResult testB() {
        System.out.println("测试接口返回");
        return AjaxResult.success("测试接口返回 testB: hello world ");
    }


}
